package com.biz.primus.ms.commodity.trans.searchRecommendword;

import com.biz.primus.ms.commodity.dao.po.SearchRecommendWord;
import com.biz.primus.ms.commodity.dao.ro.SearchRecommendWordRo;
import com.google.common.base.Function;

/**
 * 转换器 (SearchRecommendWordBackendService --> SearchRecommendWordBackendService)
 * @author huiwu.heng
 * @date 2017年2月9日
 */
public class SearchRecommendWord2SearchRecommendWordRo implements Function<SearchRecommendWord, SearchRecommendWordRo> {

	@Override
	public SearchRecommendWordRo apply(SearchRecommendWord input) {
		SearchRecommendWordRo resp = new SearchRecommendWordRo();
		resp.setId(input.getId());
		resp.setCreateTimestamp(input.getCreateTimestamp());
		resp.setIdx(input.getIdx());
		resp.setNote(input.getNote());
		resp.setUpdateTimestamp(input.getUpdateTimestamp());
		resp.setSearchName(input.getSearchName());
		return resp;
	}

}
